/*
 *  Copyright 2023 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
@import (reference) '../../styles/variables.less';

.domain-details-page-tabs {
  .announcement-card {
    margin-top: 4px;
  }

  .ant-tabs.tabs-new {
    .ant-tabs-nav {
      padding-right: 0;

      .ant-tabs-nav-list {
        > div.ant-tabs-tab:nth-last-of-type(2) {
          margin-right: 36px;
        }
      }
    }
  }
  .ant-tabs-extra-content {
    padding-right: 12px;
  }
}

.domain-form-container,
.add-subdomain-modal,
.add-data-product-modal {
  .toastui-editor {
    min-height: 150px !important; // overriding inline style

    .ProseMirror {
      min-height: 150px;
    }
  }

  .toastui-editor-md-preview {
    min-height: 150px;
  }
}

.ant-tooltip.domain-type-tooltip-container {
  max-width: 750px;

  .ant-tooltip-arrow-content::before {
    background: @white;
  }

  .ant-tooltip-inner {
    background: @white;
    padding: 20px;
  }
}

.add-data-product-modal .form-item-horizontal,
.add-subdomain-modal .form-item-horizontal {
  margin-bottom: 8px;
}

.domain-tree-view-variant.domain-tree-view-variant {
  margin: 0;
  .entity-header {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
  }

  .domain-header-action-container {
    padding: 0;
  }

  .ant-tabs-extra-content {
    padding-right: 12px;
  }

  .domain-details-page-tabs > .MuiBox-root {
    padding: 0;
  }
}

.domain-tree-panel,
.domain-details-panel {
  .reflex-card {
    background: transparent;
    border: none;
    box-shadow: none;
  }
}
